extends "../yichui-3/yichui-3.gd"


var baseId = ""
var upText1 = "一闪对雷击伤害有效"
var upText2 = "一闪额外对攻击者造成[装甲*3]的技能伤害"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("受到炮击伤害时，30%概率使攻击者<眩晕>2秒", "一闪")

func _onHurt(atkInfo):
	._onHurt(atkInfo)
	if (atkInfo.atkType == sys.AtkType.GUN or atkInfo.atkType == sys.AtkType.TORPEDO and upgraded == 1) and sys.rndPer(30):
		castBuff(atkInfo.atkCha, buff.b_xuanYun.new(2))
		if upgraded == 2:
			azurHurtChara(atkInfo.atkCha, att.def*3, sys.HurtType.WEAPON, sys.AtkType.SKILL, "一闪")

